#include <stdio.h>
#define INFO   1

int main(int argc, char *argv[])
{
    char *str = "a";
    char buf[1024];
    /* int dprintf(int fd, const char *format, ...); */
    dprintf(INFO, "cmd_flash %d bytes to %s\n", 1, str);
    fprintf(stdout, "cmd_flash %d bytes to %s\n", 1, str);

    /* int sprintf(char *string, char *farmat, ...); */
    sprintf(buf, "cmd_flash %d bytes to %s\n", 1, str);

    printf("%s", buf);
    return 0;
}
